#include <reg51.h>

sbit DIN = P3^4;
sbit DOUT = P3^7;
sbit CLK = P3^6;
sbit CS = P3^5;

unsigned int read_xpt2046();